package cn.jd.pet.domain;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import cn.jd.basic.domain.BasicDomain;

import cn.jd.org.domain.Shop;
import cn.jd.user.domain.User;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author jd
 * @since 2022-10-28
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Pet extends BasicDomain {



    private String name;
    private BigDecimal saleprice;
    private String costprice;
    private String resources;
    /**
     * 状态：0下架 1上架
     */
    private Long state=0L;
    /**
     * 类型id
     */
    private Long typeId;
    @JsonFormat (pattern = "yyyy-MM-dd HH:mm:ss" , timezone ="GMT+8" )
    private Date offsaletime;
    @JsonFormat (pattern = "yyyy-MM-dd HH:mm:ss" , timezone ="GMT+8" )
    private Date onsaletime;
    @JsonFormat (pattern = "yyyy-MM-dd HH:mm:ss" , timezone ="GMT+8" )
    private Date createtime= new Date();
    /**
     * 店铺Id 如果被领养店铺id为null
     */
    private Long shopId;
    /**
     * 如果被领养为领养用户id
     */
    private Long userId;
    private Long searchMasterMsgId;
    private Integer auditnum;
    private String note;

    private PetDetail detail;


    private User user;
    private PetType petType;
    private Shop shop;

}
